#!/bin/bash

which tmux &> /dev/null || exit 0

session=${1:-"default"}

tmux has -t $session &> /dev/null
if [ $? -eq 0 ]; then
    tmux attach -t $session
else
    tmux new -s $session
fi
